diff-mode.el (diff-refine-nonmodified): New option
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Feb 2024 22:03:10 +0000 (17:03 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Feb 2024 22:03:10 +0000 (17:03 -0500)
commit26290870b3505b8971c73fe3a82b69e3c4e86b88
tree09f94425acc660d2bb31d03445e2b04f520a29ec
parent84f72f19e514db8f8f6e469340fb5fa0719d40b6
diff-mode.el (diff-refine-nonmodified): New option

* lisp/vc/diff-mode.el (diff-font-lock-keywords): Refer directly to
font-lock faces.
(diff-apply-hunk): Use `user-error` for errors usually not due to bugs.
(diff--refine-propertize): New function.
(diff-refine-nonmodified): New custom var (bug#61396).
(diff--refine-hunk): Use them.
etc/NEWS
lisp/vc/diff-mode.el